<html>
<head>
<meta charset="UTF-8">
<title>数据源信息表详情</title>
	<link  id="easyuiTheme" href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
	<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
	<link href="../../static/css/esaas-easyui-view.css" rel="stylesheet" type="text/css"/>
	<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
	<script src="../../static/easyui/jquery.cookie.js" type="text/javascript"></script>
	<script src="../../static/easyui/ui-theme.js" type="text/javascript"></script>
	<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
	<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
	<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
	<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
	<script src="../../ffres/dict/all.js" type="text/javascript"></script>
	<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">

	    <form id="ff" method="post">
	    	<div class="esaas-info-title">数据源信息表信息</div>
	    	<table class="esaas-info-view-table">
			<tr>
				<td width="15%" align="right">业务系统代码：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="subsCode" data-options="required:true,disabled:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">数据源代码：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="subsDsCode" data-options="required:true,disabled:true"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">数据源名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="subsDsName" data-options="required:false,disabled:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">数据源-连接字符串：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="dsConnStr" data-options="required:false,disabled:true"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">数据源-用户名：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="dsUserId" data-options="required:false,disabled:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">数据源-用户密码：</td>
				<td width="35%"><input class="easyui-textbox" type="password"
					name="dsUserPwd" data-options="required:false,disabled:true"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">数据源-模式：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="dsSchemaName" data-options="required:false,disabled:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">数据源-数据库名：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="dsDbName" data-options="required:false,disabled:true"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">数据源类型：</td>
				<td width="35%"><select class="easyui-combobox"
					id="subsDsType" name="subsDsType"
					style="width: 100%; height: 25px;" disabled
					data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:S_SUBS_DS_TYPE">
				</select></td>
			</tr>
	    	</table>
	    </form>
	    <div class="esaas-info-buttons">
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="closeForm()" style="width:90px">&nbsp;关&nbsp;闭&nbsp;</a>
		</div>
	</div>
	<script>	
		$(function() {
		    addTitle("查看")
			var subsCode = $.getUrlParam('subsCode');
			var subsDsCode = $.getUrlParam('subsDsCode');
			$.restfulGet('../../api/s/subs/datasource/' + subsCode + '/' + subsDsCode,null,function(data){
					$('#ff').form('load', {
						subsCode : data.rows.subsCode,
						subsDsCode : data.rows.subsDsCode,
						subsDsName : data.rows.subsDsName,
						dsConnStr : data.rows.dsConnStr,
						dsUserId : data.rows.dsUserId,
						dsUserPwd : data.rows.dsUserPwd,
						dsSchemaName : data.rows.dsSchemaName,
						dsDbName : data.rows.dsDbName,
						subsDsType : data.rows.subsDsType
					});					
			});
		});
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>